<script>
function removeSession()
	{
		$.ajax(
 			    {
 			        url : "${pageContext.request.contextPath}/flight/removeSession.html",
 			        type: "POST",
 			        data: "",
 			        success:function()
 			        {
 			        	console.log("remove session SUCCESS");
 			        },
 			        error: function() 
 			        {
 			            //if fails 
 			        	console.log("remove session FAILS");
 			        }
 			    });
 }
 
function updateParameterFilter(type,value1,value2)
{
	var dt = {
			"type" : type + "",
			"value1" : value1 + "",
			"value2" : value2 + ""
		};
	$.ajax(
			    {
			        url : "${pageContext.request.contextPath}/flight/updateParameterFilter.html",
			        type: "POST",
			        data: JSON.stringify(dt),
			        beforeSend : function(xhr) {
						xhr.setRequestHeader("Accept", "application/json");
						xhr
								.setRequestHeader("Content-Type",
										"application/json");
					},
			        success:function()
			        {
			        	console.log("updateParameterFilter SUCCESS");
			        },
			        error: function() 
			        {
			            //if fails 
			        	console.log("updateParameterFilter FAILS");
			        }
			    });
}
function updateCurrencyCode(currencyCode)
{
	$.ajax(
		    {
		        url : "${pageContext.request.contextPath}/flight/updateCurrencyCode.html",
		        type: "POST",
		        data: currencyCode,
		        beforeSend : function(xhr) {
					xhr.setRequestHeader("Accept", "application/json");
					xhr
							.setRequestHeader("Content-Type",
									"application/json");
				},
		        success:function()
		        {
		        	console.log("updateCurrencyCode SUCCESS");
		        },
		        error: function() 
		        {
		            //if fails 
		        	console.log("updateCurrencyCode FAILS");
		        }
		    });
}
 </script>